import VueRouter from "vue-router";
import Vue from "vue";
Vue.use(VueRouter);

export let router = new VueRouter({
  routes: [
    {
      path: "",
      redirect: "/base",
    },
    {
      name: "base",
      path: "/base",
      component: () => import("@/views/base/index.vue"),
    },
    {
      path: "/mutileTr",
      component: () => import("@/views/mutile/index.vue"),
    },
    {
      path: "*",
      redirect: "/base",
    },
  ],
});
router.afterEach((to) => {
  if (to.meta?.title) {
    document.title = to.meta.title;
  }
});
